<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport"
		content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no, viewport-fit=cover" />
    <title>智医助手</title>
    <link rel="stylesheet" href="../css/vant.css">
    <link rel="stylesheet" href="css/aiMinIndex.css">
</head>

<body>
    <div id="app" v-cloak>

        <img src="./img/yuan.png" class="yuanImg" alt="">

        <img src="./img/logo.png" class="logoImg" alt="">

        <img src="./img/tip.png" class="tipImg" alt="">

        <div class="tipBtn" @click="downHandle">立即体验</div>

        <img src="./img/boLang.png" class="boLangImg" alt="">

    </div>



    <script src="../js/vue.min.js"></script>
    <script src="../js/flex_ible/lib-flexible.js"></script>
    <script src="../js/vue-lazyload.js"></script>
    <script src="../js/vant.min.js"></script>
    <script src="../js/vue-lazyload.js"></script>
    <script src="../js/url.js" type="text/javascript" charset="utf-8"></script>
    <script src="../js/ajax.js"></script>
    <script>
        var ua = navigator.userAgent.toLowerCase();
        var isWeixin = ua.indexOf('micromessenger') != -1;

        console.log(isWeixin);
        Vue.use(VueLazyload);
        var vm = new Vue({
            el: "#app",
            data: {
                showPop: false,
            },
            created() {

            },
            methods: {

                downHandle: function () {

                    alert('精彩内容，敬请期待')
                    return
                    if (isWeixin) {
                        this.showPop = true
                    } else {
                        if (window.navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
                            console.log("000");
                            var loadDateTime = new Date();
                            window.location = "clinic://"; //schema链接或者universal link
                            window.setTimeout(
                                function () { //如果没有安装app,便会执行setTimeout跳转下载页
                                    var timeOutDateTime = new Date();
                                    if (timeOutDateTime - loadDateTime < 5000) {
                                        window.location =
                                            "https://itunes.apple.com/cn/app/%E5%80%BC%E6%97%A5%E7%94%9F/id1448441059?mt=8"; //ios下载地址  
                                    } else {
                                        window.close();
                                    }
                                }, 500);
                        } else if (window.navigator.userAgent.match(/android/i)) {
                            var state = null;
                            try {
                                window.location = 'clinic://'; //schema链接或者universal link
                                window.setTimeout(
                                    function () {
                                        window.location =
                                            "https://a.app.qq.com/o/simple.jsp?pkgname=com.ccclkj.clinic";
                                        //window.location = "http://www.ccclkj.cn:1125/zbz.apk"; 
                                        //android下载地址  
                                    }, 500);
                            } catch (e) { }
                        }
                    }



                    // window.location.href = ' https://zbz-downlink.oss-cn-zhangjiakou.aliyuncs.com/com.ccclkj.clinic.wgt'
                    // window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx9cf9f21ba0cbf62b&redirect_uri=http://www.ccclkj.cn/zhensuo/sys/firstLoginUserAction.action?shop_id=" + ${this.shopId} + "&response_type=code&scope=snsapi_userinfo&state=" + ${this.userId} + "#wechat_redirect`;
                },

            }
        })
    </script>

</body>

</html>